﻿using System;

namespace OperationPlugins.Applications
{
    public abstract class ProxyBaseException : Exception
    {
        public Exception OriginalException { get; private set; }

        protected ProxyBaseException(string message, Exception e, bool exposeOriginalException)
            : base(GetMessage(message, e, exposeOriginalException))
        {
            OriginalException = e;
        }

        private static string GetMessage(string message, Exception e, bool exposeOriginalException)
        {
            return message;
        }
    }
}
